package com.wangp.qms.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PropertiesUtils {
	
	private static Logger logger = LoggerFactory.getLogger(PropertiesUtils.class);
	
	private static Properties properties ;
	
	static{
		InputStream is = PropertiesUtils.class.getClassLoader().getResourceAsStream("queue.properties");
		properties = new Properties();
		try {
			properties.load(is);
		} catch (IOException e) {
			logger.error("queue.properties加载错误");
		}
	}
	
	public static String getValues(String key){
		return properties.getProperty(key);
	}
	
	
	
}
